package com.huike.controller.Transfer;

import com.huike.pojo.SysUser;
import com.huike.result.Result;
import com.huike.service.Transfer.TransferService;
import com.huike.vo.TransferVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 转派管理
 */
@RestController
@RequestMapping("/transfer")
public class TransferController {
    @Autowired
    private TransferService transferService;

    @GetMapping("/list")
    public Result list(SysUser user) {
        List<TransferVo> list = transferService.selectList(user);
        return Result.success(list);
    }
}
